#!/bin/bash

#File:set_kibana_env.sh(原创)

kibana_setup_dir="/opt/kibana-5.5.0-linux-x86_64"
elasticsearch_url="http://192.168.0.106:9200"


# 设置环境变量
echo -e "\n\n\nserver.host: \"0.0.0.0\"">> "$kibana_setup_dir/config/kibana.yml"
echo -e "\n\nelasticsearch.url:$elasticsearch_url" >> "$kibana_setup_dir/config/kibana.yml"
echo -e  "\n\npid.file: /var/run/kibana.pid" >> "$kibana_setup_dir/config/kibana.yml"
   
echo -e "kibann.yml设置完成\nserver.host|elasticsearch.url|pid.file: /var/run/kibana.pid\n\n"

